package com.tensin.mall.product.feign;

import com.tensin.common.to.SkuHasStockTo;
import com.tensin.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author Tensin
 * @version 1.0
 * @date
 */

@FeignClient("mall-ware")
public interface WareFeignService {

    //查询sku是否还有库存
    @PostMapping("/ware/waresku/hasstock")
    R getSkusHasStock(@RequestBody List<Long> skuIds);

}
